package com.source.baseData.entity;

import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author 枫情
 * @since 2021-02-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="PoultryCategory对象", description="")
@NoArgsConstructor
@AllArgsConstructor
@ExcelTarget("poultryCategory")
public class PoultryCategory implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "禽类品种ID")
    @TableId(value = "poultryCategoryId", type = IdType.ASSIGN_ID)
    private String poultryCategoryId;

    @ApiModelProperty(value = "品种编号")
    @TableField("poultryCategoryNumber")
    private String poultryCategoryNumber;

    @ApiModelProperty(value = "品种名称(不能多于五个汉字长度)")
    @TableField("poultryCategoryName")
    private String poultryCategoryName;

    @ApiModelProperty(value = "来源地")
    @TableField("originPlace")
    private String originPlace;

    @ApiModelProperty(value = "详细信息")
    private String detail;

    @ApiModelProperty(value = "父级类别")
    @TableField("parentId")
    private String parentId;

    @ApiModelProperty(value = "屠宰场id")
    @TableField("slaughterHouseId")
    private String slaughterHouseId;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "createDate",fill = FieldFill.INSERT)
    private Date createDate;

    @ApiModelProperty(value = "逻辑删除")
    @TableField(value = "isDelete",fill = FieldFill.INSERT)
    @TableLogic
    private Boolean isDelete;


}
